<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>超简单实现vr看房子、360全景图（附完整demo） | Zelma&#39;s Blog</title>
    <meta name="generator" content="VuePress 1.8.2">
    <link rel="icon" href="/logo.png">
    <meta name="description" content="记录，成为更好的自己！">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    
    <link rel="preload" href="/assets/css/0.styles.4cf3e643.css" as="style"><link rel="preload" href="/assets/js/app.6bff9ace.js" as="script"><link rel="preload" href="/assets/js/4.4f19eb35.js" as="script"><link rel="preload" href="/assets/js/1.085d100d.js" as="script"><link rel="preload" href="/assets/js/32.f582544c.js" as="script"><link rel="prefetch" href="/assets/js/10.a9f8c063.js"><link rel="prefetch" href="/assets/js/11.104a9c15.js"><link rel="prefetch" href="/assets/js/12.2b5515f3.js"><link rel="prefetch" href="/assets/js/13.4b350042.js"><link rel="prefetch" href="/assets/js/14.c2117806.js"><link rel="prefetch" href="/assets/js/15.f122a822.js"><link rel="prefetch" href="/assets/js/16.b7b77918.js"><link rel="prefetch" href="/assets/js/17.ca19e9d9.js"><link rel="prefetch" href="/assets/js/18.86eacc78.js"><link rel="prefetch" href="/assets/js/19.a9eff237.js"><link rel="prefetch" href="/assets/js/20.1cc397e3.js"><link rel="prefetch" href="/assets/js/21.543a015c.js"><link rel="prefetch" href="/assets/js/22.319e4a6e.js"><link rel="prefetch" href="/assets/js/23.e60f5f5b.js"><link rel="prefetch" href="/assets/js/24.b3891c01.js"><link rel="prefetch" href="/assets/js/25.ed2e6b36.js"><link rel="prefetch" href="/assets/js/26.40d7e552.js"><link rel="prefetch" href="/assets/js/27.d5e7e0d7.js"><link rel="prefetch" href="/assets/js/28.10aa572b.js"><link rel="prefetch" href="/assets/js/29.acf9222c.js"><link rel="prefetch" href="/assets/js/3.74a0f1d8.js"><link rel="prefetch" href="/assets/js/30.ab8bfb83.js"><link rel="prefetch" href="/assets/js/31.36528513.js"><link rel="prefetch" href="/assets/js/33.41a28fb2.js"><link rel="prefetch" href="/assets/js/34.73610167.js"><link rel="prefetch" href="/assets/js/35.f1ec0595.js"><link rel="prefetch" href="/assets/js/36.245a9409.js"><link rel="prefetch" href="/assets/js/37.c96cef21.js"><link rel="prefetch" href="/assets/js/38.ef989ff8.js"><link rel="prefetch" href="/assets/js/39.b6ac0196.js"><link rel="prefetch" href="/assets/js/40.f64953b6.js"><link rel="prefetch" href="/assets/js/5.c1ba3938.js"><link rel="prefetch" href="/assets/js/6.5bb669f5.js"><link rel="prefetch" href="/assets/js/7.0bd32045.js"><link rel="prefetch" href="/assets/js/8.a1032cf5.js"><link rel="prefetch" href="/assets/js/9.4f6fb2c7.js">
    <link rel="stylesheet" href="/assets/css/0.styles.4cf3e643.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container" data-v-1aefc0b4><div data-v-1aefc0b4><div id="loader-wrapper" class="loading-wrapper" data-v-d48f4d20 data-v-1aefc0b4 data-v-1aefc0b4><div class="loader-main" data-v-d48f4d20><div data-v-d48f4d20></div><div data-v-d48f4d20></div><div data-v-d48f4d20></div><div data-v-d48f4d20></div></div> <!----> <!----></div> <div class="password-shadow password-wrapper-out" style="display:none;" data-v-25ba6db2 data-v-1aefc0b4 data-v-1aefc0b4><h3 class="title" data-v-25ba6db2 data-v-25ba6db2>Zelma's Blog</h3> <p class="description" data-v-25ba6db2 data-v-25ba6db2>记录，成为更好的自己！</p> <label id="box" class="inputBox" data-v-25ba6db2 data-v-25ba6db2><input type="password" value="" data-v-25ba6db2> <span data-v-25ba6db2>Konck! Knock!</span> <button data-v-25ba6db2>OK</button></label> <div class="footer" data-v-25ba6db2 data-v-25ba6db2><span data-v-25ba6db2><i class="iconfont reco-theme" data-v-25ba6db2></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-25ba6db2>vuePress-theme-reco</a></span> <span data-v-25ba6db2><i class="iconfont reco-copyright" data-v-25ba6db2></i> <a data-v-25ba6db2><span data-v-25ba6db2>zelma</span>
            
          <!---->
          2022
        </a></span></div></div> <div class="hide" data-v-1aefc0b4><header class="navbar" data-v-1aefc0b4><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Zelma's Blog" class="logo"> <span class="site-name">Zelma's Blog</span></a> <div class="links"><div class="color-picker"><a class="color-button"><i class="iconfont reco-color"></i></a> <div class="color-picker-menu" style="display:none;"><div class="mode-options"><h4 class="title">Choose mode</h4> <ul class="color-mode-options"><li class="dark">dark</li><li class="auto active">auto</li><li class="light">light</li></ul></div></div></div> <div class="search-box"><i class="iconfont reco-search"></i> <input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link"><i class="iconfont reco-home"></i>
  首页
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-category"></i>
      分类
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/随记/" class="nav-link"><i class="undefined"></i>
  随记
</a></li><li class="dropdown-item"><!----> <a href="/categories/工具/" class="nav-link"><i class="undefined"></i>
  工具
</a></li><li class="dropdown-item"><!----> <a href="/categories/JS设计模式/" class="nav-link"><i class="undefined"></i>
  JS设计模式
</a></li><li class="dropdown-item"><!----> <a href="/categories/git使用/" class="nav-link"><i class="undefined"></i>
  git使用
</a></li><li class="dropdown-item"><!----> <a href="/categories/业务场景交互具体实现/" class="nav-link"><i class="undefined"></i>
  业务场景交互具体实现
</a></li><li class="dropdown-item"><!----> <a href="/categories/技术分享/" class="nav-link"><i class="undefined"></i>
  技术分享
</a></li></ul></div></div><div class="nav-item"><a href="/tag/" class="nav-link"><i class="iconfont reco-tag"></i>
  标签
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-message"></i>
      全部文档
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/docs/theme-reco/js/prototype.html" class="nav-link"><i class="undefined"></i>
  JS相关知识
</a></li><li class="dropdown-item"><!----> <a href="/docs/theme-reco/interactive/reactVr.html" class="nav-link"><i class="undefined"></i>
  交互具体实现
</a></li><li class="dropdown-item"><!----> <a href="/docs/theme-reco/designPattern/preface.html" class="nav-link"><i class="undefined"></i>
  JavaScript设计模式与开发实践
</a></li><li class="dropdown-item"><!----> <a href="/docs/theme-reco/git/gitNormal.html" class="nav-link"><i class="undefined"></i>
  Git学习
</a></li></ul></div></div><div class="nav-item"><a href="/timeline/" class="nav-link"><i class="iconfont reco-date"></i>
  时间线
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-other"></i>
      工具
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/docs-tools/uploadImg.html" class="nav-link"><i class="undefined"></i>
  上传图片
</a></li></ul></div></div><div class="nav-item"><a href="/blogs/other/messageBoard.html" class="nav-link"><i class="iconfont reco-date"></i>
  留言板
</a></div> <!----></nav></div></header> <div class="sidebar-mask" data-v-1aefc0b4></div> <aside class="sidebar" data-v-1aefc0b4><div class="personal-info-wrapper" data-v-39576ba9 data-v-1aefc0b4><img src="/avatar.png" alt="author-avatar" class="personal-img" data-v-39576ba9> <h3 class="name" data-v-39576ba9>
    zelma
  </h3> <div class="num" data-v-39576ba9><div data-v-39576ba9><h3 data-v-39576ba9>25</h3> <h6 data-v-39576ba9>文章</h6></div> <div data-v-39576ba9><h3 data-v-39576ba9>6</h3> <h6 data-v-39576ba9>标签</h6></div></div> <ul class="social-links" data-v-39576ba9><li class="social-item" data-v-39576ba9><i class="iconfont reco-juejin" style="color:#f8b26a;" data-v-39576ba9></i></li><li class="social-item" data-v-39576ba9><i class="iconfont reco-mayun" style="color:#f26d6d;" data-v-39576ba9></i></li><li class="social-item" data-v-39576ba9><i class="iconfont reco-csdn" style="color:#f47e60;" data-v-39576ba9></i></li></ul> <hr data-v-39576ba9></div> <nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link"><i class="iconfont reco-home"></i>
  首页
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-category"></i>
      分类
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/随记/" class="nav-link"><i class="undefined"></i>
  随记
</a></li><li class="dropdown-item"><!----> <a href="/categories/工具/" class="nav-link"><i class="undefined"></i>
  工具
</a></li><li class="dropdown-item"><!----> <a href="/categories/JS设计模式/" class="nav-link"><i class="undefined"></i>
  JS设计模式
</a></li><li class="dropdown-item"><!----> <a href="/categories/git使用/" class="nav-link"><i class="undefined"></i>
  git使用
</a></li><li class="dropdown-item"><!----> <a href="/categories/业务场景交互具体实现/" class="nav-link"><i class="undefined"></i>
  业务场景交互具体实现
</a></li><li class="dropdown-item"><!----> <a href="/categories/技术分享/" class="nav-link"><i class="undefined"></i>
  技术分享
</a></li></ul></div></div><div class="nav-item"><a href="/tag/" class="nav-link"><i class="iconfont reco-tag"></i>
  标签
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-message"></i>
      全部文档
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/docs/theme-reco/js/prototype.html" class="nav-link"><i class="undefined"></i>
  JS相关知识
</a></li><li class="dropdown-item"><!----> <a href="/docs/theme-reco/interactive/reactVr.html" class="nav-link"><i class="undefined"></i>
  交互具体实现
</a></li><li class="dropdown-item"><!----> <a href="/docs/theme-reco/designPattern/preface.html" class="nav-link"><i class="undefined"></i>
  JavaScript设计模式与开发实践
</a></li><li class="dropdown-item"><!----> <a href="/docs/theme-reco/git/gitNormal.html" class="nav-link"><i class="undefined"></i>
  Git学习
</a></li></ul></div></div><div class="nav-item"><a href="/timeline/" class="nav-link"><i class="iconfont reco-date"></i>
  时间线
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-other"></i>
      工具
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/docs-tools/uploadImg.html" class="nav-link"><i class="undefined"></i>
  上传图片
</a></li></ul></div></div><div class="nav-item"><a href="/blogs/other/messageBoard.html" class="nav-link"><i class="iconfont reco-date"></i>
  留言板
</a></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>JS相关知识</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>业务场景交互具体实现</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/docs/theme-reco/interactive/reactVr.html" class="sidebar-link">React VR全景图组件</a></li><li><a href="/docs/theme-reco/interactive/cssMove.html" class="sidebar-link">css实现文字卡拉OK、跑马灯效果</a></li><li><a href="/docs/theme-reco/interactive/moveable.html" class="sidebar-link">moveable一个可拖拽、缩放、旋转、对齐的库</a></li><li><a href="/docs/theme-reco/interactive/vr360.html" aria-current="page" class="active sidebar-link">超简单实现vr看房子、360全景图（附完整demo）</a></li><li><a href="/docs/theme-reco/interactive/bullet.html" class="sidebar-link">微信小程序纯CSS实现无限弹幕滚动</a></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>JavaScript设计模式与开发实践</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Git学习</span> <span class="arrow right"></span></p> <!----></section></li></ul> </aside> <div class="password-shadow password-wrapper-in" style="display:none;" data-v-25ba6db2 data-v-1aefc0b4><h3 class="title" data-v-25ba6db2 data-v-25ba6db2>超简单实现vr看房子、360全景图（附完整demo）</h3> <!----> <label id="box" class="inputBox" data-v-25ba6db2 data-v-25ba6db2><input type="password" value="" data-v-25ba6db2> <span data-v-25ba6db2>Konck! Knock!</span> <button data-v-25ba6db2>OK</button></label> <div class="footer" data-v-25ba6db2 data-v-25ba6db2><span data-v-25ba6db2><i class="iconfont reco-theme" data-v-25ba6db2></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-25ba6db2>vuePress-theme-reco</a></span> <span data-v-25ba6db2><i class="iconfont reco-copyright" data-v-25ba6db2></i> <a data-v-25ba6db2><span data-v-25ba6db2>zelma</span>
            
          <!---->
          2022
        </a></span></div></div> <div data-v-1aefc0b4><main class="page"><section><div class="page-title"><h1 class="title">超简单实现vr看房子、360全景图（附完整demo）</h1> <div data-v-f875f3fc><i class="iconfont reco-account" data-v-f875f3fc><span data-v-f875f3fc>zelma</span></i> <i class="iconfont reco-date" data-v-f875f3fc><span data-v-f875f3fc>2022/8/19</span></i> <i class="iconfont reco-eye" data-v-f875f3fc><span id="/docs/theme-reco/interactive/vr360.html" data-flag-title="Your Article Title" class="leancloud-visitors" data-v-f875f3fc><a class="leancloud-visitors-count" style="font-size:.9rem;font-weight:normal;color:#999;"></a></span></i> <i class="tags iconfont reco-tag" data-v-f875f3fc><span class="tag-item" data-v-f875f3fc>交互实现</span></i></div></div> <div class="theme-reco-content content__default"><hr> <h2 id="啥也不说-先上图和具体代码"><a href="#啥也不说-先上图和具体代码" class="header-anchor">#</a> 啥也不说，先上图和具体代码</h2> <p><a href="https://juejin.cn/user/632967544187607/posts" target="_blank" rel="noopener noreferrer">掘金文章地址<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a> <a href="https://code.juejin.cn/pen/7096765766996852750" target="_blank" rel="noopener noreferrer">代码片段<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <h2 id="背景"><a href="#背景" class="header-anchor">#</a> 背景</h2> <p>需要实现一个类似于贝壳和安居客 vr 看房的 vr 导航图，在研究了很多之后，发现像贝壳和安居客的 vr 看房其实是使用了图片算法，把拍摄的图片根据算法进行建模，这样子建模出来的 vr 效果更真实，也不会有拉伸效果，但技术难点太高，就放弃了。
<strong>之后调研了 three.js，css 原生实现，css-3d，pannellum，pano2vr 等方案，最后是使用 pannellum 来实现 360 全景图</strong></p> <p>实现的效果如下</p> <ul><li>全景图全方位浏览</li> <li>自定义热点</li> <li>跳转场景</li> <li>地图</li> <li>手机端 vr 效果展示</li> <li>。。。</li></ul> <p>线上 demo <a href="https://www.zuiaiwanqian.com/vr" target="_blank" rel="noopener noreferrer">效果在这里<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a> （温馨提示 手机预览效果更好哦）</p> <h2 id="几种实现方式对比"><a href="#几种实现方式对比" class="header-anchor">#</a> 几种实现方式对比</h2> <table><thead><tr><th>实现方式</th> <th>pannellum</th> <th>three.js</th> <th>css 原生</th> <th>pano2vr</th></tr></thead> <tbody><tr><td>优点</td> <td>可扩展性强，github 的 issue 活跃，使用方式简单</td> <td>功能强大</td> <td>纯 css 代码实现，简单</td> <td>可视化工具，上传图片就行，不用写代码</td></tr> <tr><td>缺点</td> <td>全英文文档</td> <td>很难上手</td> <td>不好添加交互</td> <td>不好扩展</td></tr></tbody></table> <p>经过对比这些实现方式，最后是决定使用 pannellum 插件来实现 vr 360 全景图效果， <a href="https://pannellum.org/documentation/overview/" target="_blank" rel="noopener noreferrer">地址在这里<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>，是全英文文档，但是使用翻译还是基本上可以看懂，文档有很多例子，可以跟着例子一步一步走，GitHub 的 issue 很活跃，最近一个月作者都在进行回复</p> <h2 id="实现方式"><a href="#实现方式" class="header-anchor">#</a> 实现方式</h2> <h3 id="_1-实现一个全景图"><a href="#_1-实现一个全景图" class="header-anchor">#</a> 1.实现一个全景图</h3> <p>实现一个全景图有两种方式</p> <p>1.第一个是六个方位的图片拼成一个立方体，把视角放在立方体内部</p> <p>2.第二个是使用一张全景图，贴在球形上，再把视角放在球体内部</p> <p>具体的动画效果去网上自己搜，我这里直接上代码(引入 cdn 这些就不放在代码里了) 完整代码在最上方</p> <div class="language-js line-numbers-mode"><pre class="language-js"><code>          <span class="token keyword">const</span> viewer <span class="token operator">=</span> pannellum<span class="token punctuation">.</span><span class="token function">viewer</span><span class="token punctuation">(</span><span class="token string">&quot;panorama&quot;</span><span class="token punctuation">,</span> <span class="token punctuation">{</span>
            <span class="token comment">// 共同的配置</span>
            <span class="token keyword">default</span><span class="token operator">:</span> <span class="token punctuation">{</span>
              <span class="token literal-property property">firstScene</span><span class="token operator">:</span> <span class="token string">&quot;first&quot;</span><span class="token punctuation">,</span>
              <span class="token literal-property property">orientationOnByDefault</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// 是否开启vr效果 协议需要为https否则会报错</span>
              <span class="token literal-property property">autoLoad</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 自动加载</span>
              <span class="token literal-property property">autoRotate</span><span class="token operator">:</span> <span class="token operator">-</span><span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">// 自动旋转</span>
              <span class="token literal-property property">autoRotateInactivityDelay</span><span class="token operator">:</span> <span class="token number">1000</span><span class="token punctuation">,</span> <span class="token comment">// 用户操作页面后，自动旋转延迟</span>
              <span class="token literal-property property">friction</span><span class="token operator">:</span> <span class="token number">0.15</span><span class="token punctuation">,</span> <span class="token comment">// 控制摩擦器 0.1 到 1 值越大停的越快 默认值0.15</span>
              <span class="token literal-property property">showZoomCtrl</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// 是否显示缩放控件</span>
              <span class="token literal-property property">showFullscreenCtrl</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 是否显示全屏控件</span>
              <span class="token literal-property property">touchPanSpeedCoeffFactor</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token comment">// 触摸时平移速度 默认1</span>
              <span class="token literal-property property">yaw</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">// 垂直方向左右旋转角度 正值向右 负值向左</span>
              <span class="token literal-property property">pitch</span><span class="token operator">:</span> <span class="token operator">-</span><span class="token number">60</span><span class="token punctuation">,</span> <span class="token comment">// 水平方向左右旋转角度 正值向上 负值向下 仰视太大 导致图片拉伸</span>
              <span class="token literal-property property">minPitch</span><span class="token operator">:</span> <span class="token operator">-</span><span class="token number">60</span><span class="token punctuation">,</span> <span class="token comment">// 最小pitch 默认-180</span>
              <span class="token literal-property property">maxPitch</span><span class="token operator">:</span> <span class="token number">60</span><span class="token punctuation">,</span> <span class="token comment">// 最大pitch 默认180</span>
              <span class="token literal-property property">roll</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">// z轴 横着的</span>
              <span class="token literal-property property">hfov</span><span class="token operator">:</span> <span class="token number">60</span><span class="token punctuation">,</span> <span class="token comment">// 摄像机视角</span>
              <span class="token literal-property property">minHfov</span><span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> <span class="token comment">// 摄像机最小视角</span>
              <span class="token literal-property property">maxHfov</span><span class="token operator">:</span> <span class="token number">60</span><span class="token punctuation">,</span> <span class="token comment">// 摄像机最大视角</span>
              <span class="token literal-property property">escapeHTML</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// HTML 将从配置字符串中转义，以帮助缓解可能的 DOM XSS 攻击。</span>
              <span class="token literal-property property">crossOrigin</span><span class="token operator">:</span> <span class="token string">&quot;anonymous&quot;</span><span class="token punctuation">,</span> <span class="token comment">// 使用的 CORS 请求类型，可以设置为 anonymous或use-credentials。默认为anonymous.</span>
              <span class="token literal-property property">sceneFadeDuration</span><span class="token operator">:</span> <span class="token number">1000</span><span class="token punctuation">,</span> <span class="token comment">// 切换场景时动画持续时间</span>
              <span class="token comment">// compass: true, // 指南针</span>
              <span class="token comment">// northOffset: 90, // 指南针角度</span>
              <span class="token comment">// horizonRoll: 10, // 指定图像水平的俯仰/滚动</span>
              <span class="token comment">// hotSpotDebug: true, // 打印移动时的yaw pitch roll</span>
              <span class="token literal-property property">preview</span><span class="token operator">:</span> <span class="token string">'xxx'</span> <span class="token comment">// 预览图片地址</span>
            <span class="token punctuation">}</span><span class="token punctuation">,</span>
            <span class="token comment">// 场景相关配置</span>
            <span class="token literal-property property">scenes</span><span class="token operator">:</span> <span class="token punctuation">{</span>
              <span class="token literal-property property">first</span><span class="token operator">:</span> <span class="token punctuation">{</span>
                <span class="token literal-property property">type</span><span class="token operator">:</span> <span class="token string">&quot;cubemap&quot;</span><span class="token punctuation">,</span> <span class="token comment">// 全景图类型 可以是`equirectangular`、`cubemap`或 `multires`。默认为`equirectangular`，不同类型图片参数不同，可在官方文档查看</span>
                <span class="token literal-property property">cubeMap</span><span class="token operator">:</span> <span class="token punctuation">[</span>
                  <span class="token comment">//立方体全景图六张图</span>
                  <span class="token string">'xxx'</span><span class="token punctuation">,</span>
                  <span class="token string">'xxx'</span><span class="token punctuation">,</span>
                  <span class="token operator">...</span>
                <span class="token punctuation">]</span><span class="token punctuation">,</span>
              <span class="token punctuation">}</span><span class="token punctuation">,</span>
            <span class="token punctuation">}</span><span class="token punctuation">,</span>
      <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br><span class="line-number">36</span><br><span class="line-number">37</span><br><span class="line-number">38</span><br><span class="line-number">39</span><br><span class="line-number">40</span><br><span class="line-number">41</span><br><span class="line-number">42</span><br></div></div><p>以上代码运行时将会展示一个 vr、360 全景图的效果
<strong>后面的代码都是在这个基础上添加的，我只贴出来需要加这个效果需要加的代码</strong></p> <h3 id="_2-自定义热点添加"><a href="#_2-自定义热点添加" class="header-anchor">#</a> 2.自定义热点添加</h3> <div class="language-js line-numbers-mode"><pre class="language-js"><code>    <span class="token literal-property property">scenes</span><span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token literal-property property">first</span><span class="token operator">:</span> <span class="token punctuation">{</span>
                <span class="token literal-property property">type</span><span class="token operator">:</span> <span class="token string">&quot;cubemap&quot;</span><span class="token punctuation">,</span> <span class="token comment">// 全景图类型</span>
                <span class="token literal-property property">cubeMap</span><span class="token operator">:</span> <span class="token punctuation">[</span>
                  <span class="token comment">//立方体全景图六张图</span>
                <span class="token punctuation">]</span><span class="token punctuation">,</span>
                <span class="token literal-property property">hotSpots</span><span class="token operator">:</span> <span class="token punctuation">[</span>
                  <span class="token punctuation">{</span>
                    <span class="token literal-property property">yaw</span><span class="token operator">:</span> <span class="token operator">-</span><span class="token number">30</span><span class="token punctuation">,</span>
                    <span class="token literal-property property">pitch</span><span class="token operator">:</span> <span class="token operator">-</span><span class="token number">16</span><span class="token punctuation">,</span>
                    <span class="token comment">// type有两种类型 'info' 或 'scene',设置'scene'时，设置sceneId会实现跳转， 设置为'info'时是正常的热点</span>
                    <span class="token literal-property property">type</span><span class="token operator">:</span> <span class="token string">&quot;scene&quot;</span><span class="token punctuation">,</span>
                    <span class="token comment">// 当前热点跳转的页面</span>
                    <span class="token literal-property property">sceneId</span><span class="token operator">:</span> <span class="token string">&quot;second&quot;</span><span class="token punctuation">,</span>
                    <span class="token comment">// 自定义样式, 不设置是默认样式</span>
                    <span class="token literal-property property">cssClass</span><span class="token operator">:</span> <span class="token string">&quot;point&quot;</span><span class="token punctuation">,</span>
                     <span class="token comment">// 放大缩小时热点是否一起变化</span>
                    <span class="token literal-property property">scale</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
                  <span class="token punctuation">}</span><span class="token punctuation">,</span>
                  <span class="token punctuation">{</span>
                    <span class="token literal-property property">yaw</span><span class="token operator">:</span> <span class="token operator">-</span><span class="token number">6</span><span class="token punctuation">,</span>
                    <span class="token literal-property property">pitch</span><span class="token operator">:</span> <span class="token operator">-</span><span class="token number">26</span><span class="token punctuation">,</span>
                    <span class="token literal-property property">cssClass</span><span class="token operator">:</span> <span class="token string">&quot;test&quot;</span><span class="token punctuation">,</span>
                    <span class="token literal-property property">clickHandlerFunc</span><span class="token operator">:</span> clickTestBtn<span class="token punctuation">,</span> <span class="token comment">// 设置热点自定义事件</span>
                    <span class="token literal-property property">scale</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
                  <span class="token punctuation">}</span><span class="token punctuation">,</span>
                  <span class="token punctuation">{</span>
                    <span class="token literal-property property">yaw</span><span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span>
                    <span class="token literal-property property">pitch</span><span class="token operator">:</span> <span class="token number">15</span><span class="token punctuation">,</span>
                    <span class="token literal-property property">roll</span><span class="token operator">:</span> <span class="token operator">-</span><span class="token number">10</span><span class="token punctuation">,</span>
                    <span class="token literal-property property">type</span><span class="token operator">:</span> <span class="token string">'info'</span><span class="token punctuation">,</span>
                    <span class="token literal-property property">text</span><span class="token operator">:</span> <span class="token string">'我是信息xxx'</span>
                  <span class="token punctuation">}</span><span class="token punctuation">,</span>
            <span class="token punctuation">]</span><span class="token punctuation">,</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token literal-property property">second</span><span class="token operator">:</span> <span class="token punctuation">{</span>
            <span class="token string-property property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;equirectangular&quot;</span><span class="token punctuation">,</span> <span class="token comment">// 全景图类型</span>
            <span class="token string-property property">&quot;panorama&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span> <span class="token comment">// 全景图片地址</span>
        <span class="token punctuation">}</span>
   <span class="token punctuation">}</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br><span class="line-number">36</span><br><span class="line-number">37</span><br><span class="line-number">38</span><br><span class="line-number">39</span><br><span class="line-number">40</span><br></div></div><h3 id="_3-添加地图或自定义组件"><a href="#_3-添加地图或自定义组件" class="header-anchor">#</a> 3.添加地图或自定义组件</h3> <p>如果要添加地图或其他自定义组件，直接写成 HTML 元素将 z-index 设置高一点就可以了，可以把 vr、360 全景图看成一个背景，开发其他东西时正常开发即可，这也是使用这个插件来开发的原因，可扩展性很强。
下面分享一下我开发地图和 vr 控制器的思路</p> <ul><li>使用 HTML+CSS 实现组件的结构和样式</li> <li>事件监听组件的各种事件</li> <li>通过 pannellum.viewer 返回的对象，使用其中的 API 和监听方法
<strong>下面展示的所有方法都在文档里面，这边简单列几个使用方法，其他的自己去文档看</strong>
监听 pannellum 加载，场景切换等</li></ul> <div class="language-js line-numbers-mode"><pre class="language-js"><code><span class="token comment">// 获取pannellum实例对象</span>
<span class="token keyword">const</span> viewer <span class="token operator">=</span> pannellum<span class="token punctuation">.</span><span class="token function">viewer</span><span class="token punctuation">(</span><span class="token operator">...</span>各种配置<span class="token punctuation">)</span>
<span class="token comment">// load</span>
viewer<span class="token punctuation">.</span><span class="token function">load</span><span class="token punctuation">(</span><span class="token parameter">e</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
    <span class="token comment">//全景图加载时触发</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span>
<span class="token comment">// scenechange</span>
viewer<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span>'scenechange<span class="token punctuation">,</span> <span class="token parameter">e</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
    <span class="token comment">// 切换场景时触发，在load之前触发</span>
    <span class="token comment">// e为切换场景的id</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br></div></div><p>使用 API 实现添加热点，切换等</p> <div class="language-js line-numbers-mode"><pre class="language-js"><code><span class="token comment">// 获取pannellum实例对象</span>
<span class="token keyword">const</span> viewer <span class="token operator">=</span> pannellum<span class="token punctuation">.</span><span class="token function">viewer</span><span class="token punctuation">(</span><span class="token operator">...</span>各种配置<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token comment">// 添加热点 hs 热点的配置 sceneId 添加到的场景</span>
viewer<span class="token punctuation">.</span><span class="token function">addHotSpot</span><span class="token punctuation">(</span>hs<span class="token punctuation">,</span> sceneId<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token comment">// 加载场景</span>
viewer<span class="token punctuation">.</span><span class="token function">loadScene</span><span class="token punctuation">(</span>sceneId<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token comment">// 开启vr</span>
viewer<span class="token punctuation">.</span><span class="token function">startOrientation</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token comment">// 关闭vr</span>
viewer<span class="token punctuation">.</span><span class="token function">stopOrientation</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br></div></div><p>地图里面指示点，随着画面旋转效果</p> <div class="language-js line-numbers-mode"><pre class="language-js"><code>document<span class="token punctuation">.</span><span class="token function">addEventListener</span><span class="token punctuation">(</span><span class="token string">&quot;mousemove&quot;</span><span class="token punctuation">,</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
  <span class="token keyword">let</span> deg <span class="token operator">=</span> viewer<span class="token punctuation">.</span><span class="token function">getYaw</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">// 获取旋转角度 赋值给知识点</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div><p>开启 vr 后，如果要监听手机移动，可以使用<code>window.addEventListener(&quot;devicemotion&quot;,function () {})</code>来实现监听，<strong>但是前提是协议地址必须满足协议为 https，或者域名为 localhost</strong>，满足条件后才会有效，否则不会监听</p> <h3 id="总结"><a href="#总结" class="header-anchor">#</a> 总结</h3> <p>通过以上的文字，大概把<strong>pannellum</strong>(帕拉勒姆)的基础用法分享了一遍，其中还有很多 API 和配置项都没有使用，如果你需要某个效果，但是我这边没有分享，可以去文档查看，这边在总结一下遇到的几个坑</p> <ul><li>对于 yaw pitch roll 这三个位置参数，这边贴一个图供大家理解，其实自己去多尝试设置不同的值就能理解每个值代表的控制那个位置了</li></ul> <p><img src="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/55a9f241f4724cd9b930f7dcc820227b~tplv-k3u1fbpfcp-watermark.image?" alt="image.png"></p> <ul><li>如果要使用 vr 效果，协议必须为 https 才可以，否则会报错，因为<code>devicemotion</code>是只会在 https 协议下才会执行</li> <li>如果出现 info 提示图片 could not be accessed,并且图片地址没有问题时，去检查图片服务器的跨域设置</li></ul> <h3 id="结尾"><a href="#结尾" class="header-anchor">#</a> 结尾</h3> <p>对于<strong>pannellum</strong>的使用就分享到这里，在这边主要是自己做个记录，如果代码有问题的请在评论区指出，或有其它不理解的地方也请在评论区指出，觉得帮助到你了，点个赞！！！。</p></div></section> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">Last Updated: </span> <span class="time">2022/8/19 下午6:19:39</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev"><a href="/docs/theme-reco/interactive/moveable.html" class="prev">
            moveable一个可拖拽、缩放、旋转、对齐的库
          </a></span> <span class="next"><a href="/docs/theme-reco/interactive/bullet.html">
            微信小程序纯CSS实现无限弹幕滚动
          </a></span></p></div> <div class="comments-wrapper"><!----></div> <ul class="side-bar sub-sidebar-wrapper" style="width:12rem;" data-v-cb1513f6><li class="level-2" data-v-cb1513f6><a href="/docs/theme-reco/interactive/vr360.html#啥也不说-先上图和具体代码" class="sidebar-link reco-side-啥也不说-先上图和具体代码" data-v-cb1513f6>啥也不说，先上图和具体代码</a></li><li class="level-2" data-v-cb1513f6><a href="/docs/theme-reco/interactive/vr360.html#背景" class="sidebar-link reco-side-背景" data-v-cb1513f6>背景</a></li><li class="level-2" data-v-cb1513f6><a href="/docs/theme-reco/interactive/vr360.html#几种实现方式对比" class="sidebar-link reco-side-几种实现方式对比" data-v-cb1513f6>几种实现方式对比</a></li><li class="level-2" data-v-cb1513f6><a href="/docs/theme-reco/interactive/vr360.html#实现方式" class="sidebar-link reco-side-实现方式" data-v-cb1513f6>实现方式</a></li><li class="level-3" data-v-cb1513f6><a href="/docs/theme-reco/interactive/vr360.html#_1-实现一个全景图" class="sidebar-link reco-side-_1-实现一个全景图" data-v-cb1513f6>1.实现一个全景图</a></li><li class="level-3" data-v-cb1513f6><a href="/docs/theme-reco/interactive/vr360.html#_2-自定义热点添加" class="sidebar-link reco-side-_2-自定义热点添加" data-v-cb1513f6>2.自定义热点添加</a></li><li class="level-3" data-v-cb1513f6><a href="/docs/theme-reco/interactive/vr360.html#_3-添加地图或自定义组件" class="sidebar-link reco-side-_3-添加地图或自定义组件" data-v-cb1513f6>3.添加地图或自定义组件</a></li><li class="level-3" data-v-cb1513f6><a href="/docs/theme-reco/interactive/vr360.html#总结" class="sidebar-link reco-side-总结" data-v-cb1513f6>总结</a></li><li class="level-3" data-v-cb1513f6><a href="/docs/theme-reco/interactive/vr360.html#结尾" class="sidebar-link reco-side-结尾" data-v-cb1513f6>结尾</a></li></ul></main> <!----></div></div></div></div><div class="global-ui"><div class="back-to-ceiling" style="right:1rem;bottom:6rem;width:2.5rem;height:2.5rem;border-radius:.25rem;line-height:2.5rem;display:none;" data-v-c6073ba8 data-v-c6073ba8><svg t="1574745035067" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5404" class="icon" data-v-c6073ba8><path d="M526.60727968 10.90185116a27.675 27.675 0 0 0-29.21455937 0c-131.36607665 82.28402758-218.69155461 228.01873535-218.69155402 394.07834331a462.20625001 462.20625001 0 0 0 5.36959153 69.94390903c1.00431239 6.55289093-0.34802892 13.13561351-3.76865779 18.80351572-32.63518765 54.11355614-51.75690182 118.55860487-51.7569018 187.94566865a371.06718723 371.06718723 0 0 0 11.50484808 91.98906777c6.53300375 25.50556257 41.68394495 28.14064038 52.69160883 4.22606766 17.37162448-37.73630017 42.14135425-72.50938081 72.80769204-103.21549295 2.18761121 3.04276886 4.15646224 6.24463696 6.40373557 9.22774369a1871.4375 1871.4375 0 0 0 140.04691725 5.34970492 1866.36093723 1866.36093723 0 0 0 140.04691723-5.34970492c2.24727335-2.98310674 4.21612437-6.18497483 6.3937923-9.2178004 30.66633723 30.70611158 55.4360664 65.4791928 72.80769147 103.21549355 11.00766384 23.91457269 46.15860503 21.27949489 52.69160879-4.22606768a371.15156223 371.15156223 0 0 0 11.514792-91.99901164c0-69.36717486-19.13165746-133.82216804-51.75690182-187.92578088-3.42062944-5.66790279-4.76302748-12.26056868-3.76865837-18.80351632a462.20625001 462.20625001 0 0 0 5.36959269-69.943909c-0.00994388-166.08943902-87.32547796-311.81420293-218.6915546-394.09823051zM605.93803103 357.87693858a93.93749974 93.93749974 0 1 1-187.89594924 6.1e-7 93.93749974 93.93749974 0 0 1 187.89594924-6.1e-7z" p-id="5405" data-v-c6073ba8></path><path d="M429.50777625 765.63860547C429.50777625 803.39355007 466.44236686 1000.39046097 512.00932183 1000.39046097c45.56695499 0 82.4922232-197.00623328 82.5015456-234.7518555 0-37.75494459-36.9345906-68.35043303-82.4922232-68.34111062-45.57627738-0.00932239-82.52019037 30.59548842-82.51086798 68.34111062z" p-id="5406" data-v-c6073ba8></path></svg></div><canvas id="vuepress-canvas-cursor"></canvas><div class="kanbanniang" data-v-5775ee02><div class="banniang-container" style="display:;" data-v-5775ee02><div class="messageBox" style="right:68px;bottom:290px;display:none;" data-v-5775ee02>
      欢迎来到Zelma的博客
    </div> <div class="operation" style="right:90px;bottom:40px;display:;" data-v-5775ee02><i class="kbnfont kbn-ban-home ban-home" data-v-5775ee02></i> <i class="kbnfont kbn-ban-message message" data-v-5775ee02></i> <i class="kbnfont kbn-ban-close close" data-v-5775ee02></i> <a target="_blank" href="https://vuepress-theme-reco.recoluan.com/views/plugins/kanbanniang.html" data-v-5775ee02><i class="kbnfont kbn-ban-info info" data-v-5775ee02></i></a> <i class="kbnfont kbn-ban-theme skin" style="display:;" data-v-5775ee02></i></div> <canvas id="banniang" width="250" height="320" class="live2d" style="right:90px;bottom:-20px;opacity:0.9;" data-v-5775ee02></canvas></div> <div class="showBanNiang" style="display:none;" data-v-5775ee02>
    看板娘
  </div></div><!----><div class="RibbonAnimation"></div></div></div>
    <script src="/assets/js/app.6bff9ace.js" defer></script><script src="/assets/js/4.4f19eb35.js" defer></script><script src="/assets/js/1.085d100d.js" defer></script><script src="/assets/js/32.f582544c.js" defer></script>
  </body>
</html>
